<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>Navigation</title>
    <link
      href="https://cdn.bootcdn.net/ajax/libs/minireset.css/0.0.2/minireset.min.css"
      rel="stylesheet"
    />
    <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.1.2/echarts.js"></script>

    <script src="https://cdn.bootcdn.net/ajax/libs/dayjs/1.10.6/dayjs.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/dayjs/1.10.6/locale/zh-cn.js"></script>
    <script>
      dayjs.locale('zh-cn')
    </script>

    <script src="./js/chinese-lunar.js"></script>
    <link rel="stylesheet" href="./css//index.css" />
  </head>
  <body>
    <div class="container">
      <div id="clock"></div>
      <div class="title-clock"></div>
      <div class="nav">
        <a href="https://victorybin.gitee.io/wallpaper">壁纸</a>
        <a href="https://victorybin.gitee.io/music">音乐</a>
        <a href="#">摄影</a>
      </div>
    </div>
  </body>

  <script type="text/javascript" src="./js/clock.js"></script>

  <script>
    var timeNode = document.querySelector('.title-clock')
    updataTime()
    setInterval(() => {
      updataTime()
    }, 500)

    function updataTime() {
      var lunar = chineseLunar.solarToLunar(new Date())
      var d = dayjs().format('YYYY/MM/DD HH:mm:ss (dddd)')
      var D = chineseLunar.format(lunar, 'T(A) Md')
      timeNode.innerHTML = `<p>${d}</p><p>${D}</p>`
    }
  </script>
</html>
